package Java练习.判断;

import java.util.Scanner;

public class If3_practice {
    //if的第三种格式练习
    public static void main(String[] args) {
        // 准备
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入小明的分数");
        int score = sc.nextInt();
        if(score>0 && score<100){
           if (score>=95 && score<=100){
               System.out.println("送自行车一辆");
           } else if (score<=94 && score>=90) {
               System.out.println("游乐园畅玩一天");
           } else if (score>=80&&score<=89) {
               System.out.println("送变形金刚一个");
           } else{
               System.out.println("揍一顿!!");

           }
       }else {
           System.out.println("成绩不合法");
       }
    }
}
